package com.bwie.auth.feign;

import com.bwie.auth.feign.factory.UserFeignFactory;
import com.bwie.common.domain.User;
import com.bwie.common.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author：杨鹏
 * @Package：com.bwie.auth.feign
 * @Project：yp_zhoukao723
 * @name：UserFeign
 * @Date：2024/7/23 9:27
 */
@FeignClient(value = "bwie-user",fallbackFactory = UserFeignFactory.class)
public interface UserFeign {

    @PostMapping("user/login")
    public Result<User> login(@RequestBody User user);

}
